package com.tbfeng.id.builder.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author linjf48556
 * @Description
 * @date 2024-03-12
 **/
@Component
public class SegmentService {

    @Autowired
    private IDGen idGen;

    public String getId(String key) {
        return idGen.get(key) + "";
    }
}
